import { createApp } from 'vue'
// import './style.css'
import App from './App.vue'
import router from './router'  //引入路由
import pinia from './store'   //引入pinia
//导入全部element-plus的样式
// import ElementPlus from 'element-plus' 
// import 'element-plus/dist/index.css' 
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import * as echarts from 'echarts'; // 引入 ECharts
// import echarts from 'echarts'; // 引入 ECharts
//创建实例
const app = createApp(App)

//注册
app.use(router)
app.use(pinia)
// app.use(ElementPlus)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }

// 将 ECharts 挂载到 Vue 的原型上
app.config.globalProperties.$echarts = echarts;

//挂载
app.mount('#app')